<!DOCTYPE html>
<html lang="en">

<head>
    <!-- Use correct character set. -->
    <meta charset="utf-8">
    <!-- Tell IE to use the latest, best version. -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- Make the application on mobile take up the full browser screen and disable user scaling. -->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
    <title>Hello World!</title>
    <script src="../Build/CesiumUnminified/Cesium.js"></script>
    <style>
        @import url(../Build/CesiumUnminified/Widgets/widgets.css);
        html,
        body,
        #cesiumContainer {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }
    </style>
</head>

<body>
        <div id="cesiumContainer">
        <div id="cesiumxin" style="position:fixed;left:0;z-index:99"><a href="http://cesium.xin" style="color:aliceblue;text-decoration:none">cesium中文网 http://cesium.xin </a></div>
    </div>
    <script>
        var viewer = new Cesium.Viewer('cesiumContainer', 
        {
            // imageryProvider: new Cesium.SingleTileImageryProvider({
            //    url: '../img/worldimage.jpg'
            // }),
            globe:false,//三维球可见性
            skyBox : new Cesium.SkyBox({
                sources : {
                  positiveX : 'SkyBox/tycho2t3_80_px.jpg',
                  negativeX : 'SkyBox/tycho2t3_80_mx.jpg',
                  positiveY : 'SkyBox/tycho2t3_80_py.jpg',
                  negativeY : 'SkyBox/tycho2t3_80_my.jpg',
                  positiveZ : 'SkyBox/tycho2t3_80_pz.jpg',
                  negativeZ : 'SkyBox/tycho2t3_80_mz.jpg'
                }
            }),
    
            homeButton: false,
            //sceneModePicker: false,
            baseLayerPicker: false,
            navigationHelpButton: false,
            animation: false,
            timeline: false,
            fullscreenButton: false,
            vrButton: false
        });
        viewer.scene.moon =null;
        viewer.scene.sun =null;
        
        var redBox = viewer.entities.add({
            name : 'Red box with black outline',
            position: Cesium.Cartesian3.fromDegrees(-107.0, 40.0, 300000.0),
            box : {
                dimensions : new Cesium.Cartesian3(400000.0, 300000.0, 500000.0),
                material : Cesium.Color.RED.withAlpha(0.5),
                outline : true,
                outlineColor : Cesium.Color.BLACK
            }
        });
        viewer.trackedEntity = redBox;
    </script>
</body>

</html>